<header>
    <nav class="nav-menu bg-white">
        <el-menu class="with1200" id="nav-menu" mode="horizontal">
            <a href="/"><img class="flatLeft" id="logo" src="/themes/default/static/images/logo.png" /></a>
            <el-menu-item index="1"><a href="/" >首页</a></el-menu-item>
            {volist name="nav[0]" id="vo"}
            {empty name="nav[$vo.nav_id]"}
            <el-menu-item index="{$vo.nav_id}"><a href="{$vo.url}" >{$vo.nav_title|raw}</a></el-menu-item>
            {/empty}
            {notempty name="nav[$vo.nav_id]"}
            <el-submenu index="{$vo.nav_id}">
                <template slot="title">{$vo.nav_title}</template>
                {volist name="nav[$vo.nav_id]" id="v"}
                <el-menu-item index="{$v.nav_id}"><a style="color: #909399;" href="{$v.url}" target="_blank">{$v.nav_title|raw}</a></el-menu-item>
                {/volist}
            </el-submenu>
            {/notempty}
            {/volist}
            {notempty name="userInfo"}
            <el-submenu index="99" style="float: right">
                <template slot="title">{$userInfo.username}</template>
                <a style="color: #909399;" href="/home/post/postAdd"><el-menu-item index="99-1">投稿</el-menu-item></a>
                <a style="color: #909399;" href="/home/member/index"><el-menu-item index="99-2">个人中心</el-menu-item></a>
                <a style="color: #909399;" href="/home/member/logout" > <el-menu-item index="99-3">退出登录</el-menu-item></a>
            </el-submenu>
            <img style="width: 35px;height: 35px;border-radius: 50%;float: right;position: relative;top: 15px;" src='{$userInfo["avatar"]|default="/themes/default/static/images/default/default_avatar.jpg"}' />
            {/notempty}
            {empty name="userInfo"}
            <a href="/home/member/wxLogin" style="position: relative;top: 10px;float: right;margin-left: 5px;"><el-button type="primary">登录</el-button></a>
            <a href="/home/member/register" style="position: relative;top: 10px;float: right"><el-button type="danger">注册</el-button></a>
            {/empty}
        </el-menu>
    </nav>
</header>
<!--自定义JS代码-->
{$statistics|raw}